<?php

if (POWER != 5) {
  err('该命令必须以基本管理员身份登陆！请重登陆');
}

if ($_POST['referrer_top'] == 1) {
  $o = '开启';
  if (!copy('readonly/js/referrer_top.js', 'writable/js/referrer_top.js')) {
    err('开启来路链接失败！原因：writable/js/目录无写权限');
  }
} else {
  $o = '关闭';
  @ unlink('writable/js/referrer_top.js');
}

alert('来路链接'.$o.'成功！', '?get=welcome');

?>